/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.co.pas.business.message;

import java.util.List;
import za.co.pas.business.data.Company;

/**
 *
 * @author alabuschagne
 */
public class CompanyListChanged extends MessageObj
{
    public CompanyListChanged()
    {
        super(MessageObj.COMPANY_LIST_CHANGED);
    }

    public CompanyListChanged(List<Company> newCompanies)
    {
        super(MessageObj.COMPANY_LIST_CHANGED);
        setNewValue(newCompanies);
    }

    public CompanyListChanged(List<Company>  currentCompanies, List<Company>  newCompanies)
    {
        super(MessageObj.COMPANY_LIST_CHANGED);
        setOldValue(currentCompanies);
        setNewValue(newCompanies);
    }
}
